package com.beijiteshop.shop.model.api.response

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * 商品实体类
 */
@Parcelize
data class ProductBean(
    val bus_GoodsID: String,
    val goodName: String,
    val intro: String,
    val inventory: String?,
    val isSellout: String,
    val marketPrice: String,
    val path: String,
    val sellingPrice: String,
    val soldOut: Int?,
    var color: String?,//商品颜色
    var spec: String?//商品规格
): Parcelable{
    /**
     * 是否已售罄
     */
    fun sellOut(): Boolean{
        return isSellout == "1"//已售罄
    }
}